<!DOCTYPE html>
<html lang="zh">

	<head>
		<meta charset="utf-8" />
		<title>Markdown在线编辑器 - www.MdEditor.com</title>
		<link rel="shortcut icon" href="https://www.mdeditor.com/images/logos/favicon.ico" type="image/x-icon" /> </head>

	<body>
		<h1 id="h1-fastlane-"><a name="FastLane使用教程" class="reference-link"></a><span class="header-link octicon octicon-link"></span>FastLane使用教程</h1>
		<div class="markdown-toc editormd-markdown-toc">
			<ul class="markdown-toc-list">
				<li>
					<a class="toc-level-1" href="#FastLane使用教程" level="1">FastLane使用教程</a>
					<ul>
						<li>
							<a class="toc-level-2" href="#安装" level="2">安装</a>
						</li>
						<li>
							<a class="toc-level-2" href="#Spaceship （处理后台）" level="2">Spaceship （处理后台）</a>
							<ul>
								<li>
									<a class="toc-level-3" href="#安装" level="3">安装</a>
								</li>
								<li>
									<a class="toc-level-3" href="#使用Spaceship" level="3">使用Spaceship</a>
								</li>
								<li>
									<a class="toc-level-3" href="#添加测试设备" level="3">添加测试设备</a>
								</li>
								<li>
									<a class="toc-level-3" href="#获取对应签名" level="3">获取对应签名</a>
								</li>
								<li>
									<a class="toc-level-3" href="#刷新签名设备列表" level="3">刷新签名设备列表</a>
								</li>
								<li>
									<a class="toc-level-3" href="#更新签名" level="3">更新签名</a>
								</li>
								<li>
									<a class="toc-level-3" href="#下载签名" level="3">下载签名</a>
								</li>
							</ul>
						</li>
						<li>
							<a class="toc-level-2" href="#Fastlane重签" level="2">Fastlane重签</a>
							<ul></ul>
						</li>
					</ul>
				</li>
			</ul>
		</div>
		<h2 id="h2-u5B89u88C5"><a name="安装" class="reference-link"></a><span class="header-link octicon octicon-link"></span>安装</h2><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pln">sudo gem install fastlane</span></code></li></ol></pre>
		<h2 id="h2-spaceship-"><a name="Spaceship （处理后台）" class="reference-link"></a><span class="header-link octicon octicon-link"></span>Spaceship （处理后台）</h2>
		<h3 id="h3-u5B89u88C5"><a name="安装" class="reference-link"></a><span class="header-link octicon octicon-link"></span>安装</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="com">#安装pry</span></code></li><li class="L1"><code class="lang-shell"><span class="pln">sudo gem install pry</span></code></li></ol></pre>
		<h3 id="h3--spaceship"><a name="使用Spaceship" class="reference-link"></a><span class="header-link octicon octicon-link"></span>使用Spaceship</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pln">liuming@liumingdeMacBook</span><span class="pun">-</span><span class="typ">Pro</span><span class="pln"> </span><span class="pun"></span><span class="pln"> </span><span class="pun">~</span><span class="pln"> </span><span class="pun"></span><span class="pln"> fastlane spaceship</span></code></li><li class="L1"><code class="lang-shell"><span class="pun">[✔]</span><span class="pln"> </span><span class="pun">🚀</span></code></li><li class="L2"><code class="lang-shell"><span class="pun">[</span><span class="lit">11</span><span class="pun">:</span><span class="lit">54</span><span class="pun">:</span><span class="lit">08</span><span class="pun">]:</span><span class="pln"> </span><span class="typ">Get</span><span class="pln"> started </span><span class="kwd">using</span><span class="pln"> a </span><span class="typ">Gemfile</span><span class="pln"> </span><span class="kwd">for</span><span class="pln"> fastlane https</span><span class="pun">:</span><span class="com">//docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile</span></code></li><li class="L3"><code class="lang-shell"><span class="typ">Username</span><span class="pun">:</span><span class="pln"> idp@zelark</span><span class="pun">.</span><span class="pln">com</span></code></li><li class="L4"><code class="lang-shell"><span class="typ">Logging</span><span class="pln"> </span><span class="kwd">into</span><span class="pln"> to </span><span class="typ">App</span><span class="pln"> </span><span class="typ">Store</span><span class="pln"> </span><span class="typ">Connect</span><span class="pln"> </span><span class="pun">(</span><span class="pln">idp@zelark</span><span class="pun">.</span><span class="pln">com</span><span class="pun">)...</span></code></li><li class="L5"><code class="lang-shell"><span class="typ">Successfully</span><span class="pln"> logged </span><span class="kwd">in</span><span class="pln"> to </span><span class="typ">App</span><span class="pln"> </span><span class="typ">Store</span><span class="pln"> </span><span class="typ">Connect</span></code></li><li class="L6"><code class="lang-shell"></code></li><li class="L7"><code class="lang-shell"><span class="typ">Logging</span><span class="pln"> </span><span class="kwd">into</span><span class="pln"> the </span><span class="typ">Developer</span><span class="pln"> </span><span class="typ">Portal</span><span class="pln"> </span><span class="pun">(</span><span class="pln">idp@zelark</span><span class="pun">.</span><span class="pln">com</span><span class="pun">)...</span></code></li><li class="L8"><code class="lang-shell"><span class="typ">Successfully</span><span class="pln"> logged </span><span class="kwd">in</span><span class="pln"> to the </span><span class="typ">Developer</span><span class="pln"> </span><span class="typ">Portal</span></code></li><li class="L9"><code class="lang-shell"></code></li><li class="L0"><code class="lang-shell"><span class="pun">---------------------------------------</span></code></li><li class="L1"><code class="lang-shell"><span class="pun">|</span><span class="pln"> </span><span class="typ">Welcome</span><span class="pln"> to the spaceship playground </span><span class="pun">|</span></code></li><li class="L2"><code class="lang-shell"><span class="pun">---------------------------------------</span></code></li><li class="L3"><code class="lang-shell"></code></li><li class="L4"><code class="lang-shell"><span class="typ">Enter</span><span class="pln"> docs to open up the documentation</span></code></li><li class="L5"><code class="lang-shell"><span class="typ">Enter</span><span class="pln"> </span><span class="kwd">exit</span><span class="pln"> to </span><span class="kwd">exit</span><span class="pln"> the spaceship playground</span></code></li><li class="L6"><code class="lang-shell"><span class="typ">Enter</span><span class="pln"> _ to access the </span><span class="kwd">return</span><span class="pln"> value of the </span><span class="kwd">last</span><span class="pln"> executed command</span></code></li><li class="L7"><code class="lang-shell"></code></li><li class="L8"><code class="lang-shell"><span class="typ">Just</span><span class="pln"> enter the commands </span><span class="kwd">and</span><span class="pln"> confirm </span><span class="kwd">with</span><span class="pln"> </span><span class="typ">Enter</span></code></li><li class="L9"><code class="lang-shell"><span class="pun">[</span><span class="lit">1</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span></code></li></ol></pre>
		<h3 id="h3-u6DFBu52A0u6D4Bu8BD5u8BBEu5907"><a name="添加测试设备" class="reference-link"></a><span class="header-link octicon octicon-link"></span>添加测试设备</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pun">[</span><span class="lit">9</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span><span class="pln"> </span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Portal</span><span class="pun">.</span><span class="pln">device</span><span class="pun">.</span><span class="pln">create</span><span class="pun">!(</span><span class="pln">name</span><span class="pun">:</span><span class="pln"> </span><span class="str">"ceshiji iphone6 gold"</span><span class="pun">,</span><span class="pln"> udid</span><span class="pun">:</span><span class="pln"> </span><span class="str">"73fe3de0e4eff816c399563097fd9d3cd2c3d554"</span><span class="pun">)</span></code></li></ol></pre>
		<h3 id="h3-u83B7u53D6u5BF9u5E94u7B7Eu540D"><a name="获取对应签名" class="reference-link"></a><span class="header-link octicon octicon-link"></span>获取对应签名</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pun">[</span><span class="lit">32</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span><span class="pln"> laoliuProfile </span><span class="pun">=</span><span class="pln"> </span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Portal</span><span class="pun">.</span><span class="pln">provisioning_profile</span><span class="pun">.</span><span class="pln">find_by_bundle_id</span><span class="pun">(</span><span class="pln">bundle_id</span><span class="pun">:</span><span class="pln"> </span><span class="str">"com.laoliu.*"</span><span class="pun">).</span><span class="pln">first</span></code></li></ol></pre>
		<h3 id="h3-u5237u65B0u7B7Eu540Du8BBEu5907u5217u8868"><a name="刷新签名设备列表" class="reference-link"></a><span class="header-link octicon octicon-link"></span>刷新签名设备列表</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pun">[</span><span class="lit">32</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span><span class="pln"> laoliuProfile</span><span class="pun">.</span><span class="pln">devices </span><span class="pun">=</span><span class="pln"> </span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Portal</span><span class="pun">.</span><span class="pln">device</span><span class="pun">.</span><span class="pln">all</span></code></li><li class="L1"><code class="lang-shell"><span class="pun">=&gt;</span><span class="pln"> </span><span class="pun">[&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Portal</span><span class="pun">::</span><span class="typ">Device</span></code></li><li class="L2"><code class="lang-shell"><span class="pln"> id</span><span class="pun">=</span><span class="str">"J297S4A4SQ"</span><span class="pun">,</span></code></li><li class="L3"><code class="lang-shell"><span class="pln"> name</span><span class="pun">=</span><span class="str">"ceshiji iphone6 gold"</span><span class="pun">,</span></code></li><li class="L4"><code class="lang-shell"><span class="pln"> udid</span><span class="pun">=</span><span class="str">"73fe3de0e4eff816c399563097fd9d3cd2c3d554"</span><span class="pun">,</span></code></li><li class="L5"><code class="lang-shell"><span class="pln"> platform</span><span class="pun">=</span><span class="str">"ios"</span><span class="pun">,</span></code></li><li class="L6"><code class="lang-shell"><span class="pln"> status</span><span class="pun">=</span><span class="str">"c"</span><span class="pun">,</span></code></li><li class="L7"><code class="lang-shell"><span class="pln"> model</span><span class="pun">=</span><span class="str">"iPhone 6"</span><span class="pun">,</span></code></li><li class="L8"><code class="lang-shell"><span class="pln"> device_type</span><span class="pun">=</span><span class="str">"iphone"</span><span class="pun">&gt;,</span></code></li><li class="L9"><code class="lang-shell"><span class="pln"> </span><span class="pun">&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Portal</span><span class="pun">::</span><span class="typ">Device</span></code></li><li class="L0"><code class="lang-shell"><span class="pln"> id</span><span class="pun">=</span><span class="str">"788WAU7992"</span><span class="pun">,</span></code></li><li class="L1"><code class="lang-shell"><span class="pln"> name</span><span class="pun">=</span><span class="str">"liuming"</span><span class="pun">,</span></code></li><li class="L2"><code class="lang-shell"><span class="pln"> udid</span><span class="pun">=</span><span class="str">"d89d45fdf213eb269716ee8672a78fdc34ee9730"</span><span class="pun">,</span></code></li><li class="L3"><code class="lang-shell"><span class="pln"> platform</span><span class="pun">=</span><span class="str">"ios"</span><span class="pun">,</span></code></li><li class="L4"><code class="lang-shell"><span class="pln"> status</span><span class="pun">=</span><span class="str">"c"</span><span class="pun">,</span></code></li><li class="L5"><code class="lang-shell"><span class="pln"> model</span><span class="pun">=</span><span class="str">"iPhone 8 Plus"</span><span class="pun">,</span></code></li><li class="L6"><code class="lang-shell"><span class="pln"> device_type</span><span class="pun">=</span><span class="str">"iphone"</span><span class="pun">&gt;]</span></code></li></ol></pre>
		<h3 id="h3-u66F4u65B0u7B7Eu540D"><a name="更新签名" class="reference-link"></a><span class="header-link octicon octicon-link"></span>更新签名</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pun">[</span><span class="lit">34</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span><span class="pln"> laoliuProfile</span><span class="pun">.</span><span class="pln">update</span><span class="pun">!</span></code></li></ol></pre>
		<h3 id="h3-u4E0Bu8F7Du7B7Eu540D"><a name="下载签名" class="reference-link"></a><span class="header-link octicon octicon-link"></span>下载签名</h3><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pun">[</span><span class="lit">41</span><span class="pun">]</span><span class="pln"> pry</span><span class="pun">(#&lt;</span><span class="typ">Spaceship</span><span class="pun">::</span><span class="typ">Playground</span><span class="pun">&gt;)&gt;</span><span class="pln"> </span><span class="typ">File</span><span class="pun">.</span><span class="pln">write</span><span class="pun">(</span><span class="str">"/Users/liuming/git/outPut.mobileprovision"</span><span class="pun">,</span><span class="pln"> laoliuProfile</span><span class="pun">.</span><span class="pln">download</span><span class="pun">)</span></code></li></ol></pre>
		<h2 id="h2-fastlane-"><a name="Fastlane重签" class="reference-link"></a><span class="header-link octicon octicon-link"></span>Fastlane重签</h2><pre class="prettyprint linenums prettyprinted"><ol class="linenums"><li class="L0"><code class="lang-shell"><span class="pln">liuming@liumingdeMacBook</span><span class="pun">-</span><span class="typ">Pro</span><span class="pln"> </span><span class="pun"></span><span class="pln"> </span><span class="pun">~</span><span class="pln"> </span><span class="pun"></span><span class="pln"> fastlane run resign ipa</span><span class="pun">:</span><span class="str">"/Users/liuming/git/超级签名测试/原始包/fastLineTest/linker.ipa"</span><span class="pln"> signing_identity</span><span class="pun">:</span><span class="str">"iPhone Distribution: Shanxi Zelark Network Technology Co., Ltd. (XVGPJC6VQ4)"</span><span class="pln"> provisioning_profile</span><span class="pun">:</span><span class="str">"/Users/liuming/git/超级签名测试/原始包/fastLineTest/zelarkTest.mobileprovision"</span></code></li></ol></pre> </body>

</html>